package com.liangtian.mdm.system.menu.model;

//import java.io.Serializable;

import java.util.List;

public class MenuShow implements Comparable<MenuShow> {

    private String menu_id;
    private String name;
    private String showname;
    private String super_id;
    private String url;
    private String menu_type;
    private String model_id;
    private List<MenuShow> nextMenu;
    private int order_num;

    public String getModel_id() {
        return model_id;
    }

    public void setModel_id(String model_id) {
        this.model_id = model_id;
    }

    public String getMenu_type() {
        return menu_type;
    }

    public void setMenu_type(String menu_type) {
        this.menu_type = menu_type;
    }

    public String getMenu_id() {
        return menu_id;
    }

    public void setMenu_id(String menu_id) {
        this.menu_id = menu_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShowname() {
        return showname;
    }

    public void setShowname(String showname) {
        this.showname = showname;
    }

    public List<MenuShow> getNextMenu() {
        return nextMenu;
    }

    public void setNextMenu(List<MenuShow> nextMenu) {
        this.nextMenu = nextMenu;
    }

    public String getSuper_id() {
        return super_id;
    }

    public void setSuper_id(String super_id) {
        this.super_id = super_id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getOrder_num() {
        return order_num;
    }

    public void setOrder_num(int order_num) {
        this.order_num = order_num;
    }

    @Override
    public int compareTo(MenuShow o) {
        int ret = this.getOrder_num() - o.getOrder_num();
        if (ret == 0) {
            return Integer.parseInt(this.getMenu_id()) - Integer.parseInt(o.getMenu_id());
        }
        return ret;
    }


}
